package com.h3bpm.web.protalHanding;

import OThinker.H3.Controller.ControllerBase;
import com.h3bpm.web.config.UrlConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Threading extends ControllerBase {


    @Override
    public String getFunctionCode() {
        return null;
    }

    private static Logger log = LoggerFactory.getLogger(Threading.class);
    //处理发送数据
    public static void updateException() {
        String BusinessUrl= UrlConfig.BusinessUrl;
        String bpmUrl=UrlConfig.BPMURL;
        Boolean pushStatus=UrlConfig.pushStatus;
        log.info("============"+pushStatus);
        if(pushStatus) {
            //1.获取创建实例表数据
            ThreadHelper.getInstance(BusinessUrl, bpmUrl);
            //2.获取代办数据
            ThreadHelper.getTask(BusinessUrl, bpmUrl);
            //3.处理更新实例
            ThreadHelper.updateInstance(BusinessUrl, bpmUrl);
        }
    }
}
